package net.maergaiyun.manager;

import net.maergaiyun.model.ShortLinkDO;

public interface ShortLinkManager {
    /**
     * 添加短链码
     *
     * @param shortLinkDO
     * @return
     */
    int addShortLink(ShortLinkDO shortLinkDO);

    /**
     * 根据短链码查详情
     *
     * @param shortLinkCode
     * @return
     */
    ShortLinkDO findByShortLinkCode(String shortLinkCode);

    /**
     * 删除短链码
     *
     * @param shortLinkDO
     * @return
     */
    int del(ShortLinkDO shortLinkDO);

    /**
     * 更新短链
     *
     * @param shortLinkDO
     * @return
     */
    int update(ShortLinkDO shortLinkDO);
}
